const indexRouter = require('express').Router();

indexRouter.get('/index',(req,res)=>{
  const arr = ['秩序', '小狼君', '白粉花','白梅梅'];
  const aSign = 'stay at home';
  const html = '<h3>Sword Art Online</h3>' 
  res.render('index', {
    arr,
    aSign,
    html
  })
  console.log('响应成功');
})

   
indexRouter.post('/index',(req,res)=>{
res.send('请求成功')
})

module.exports = indexRouter;